<?php

declare(strict_types=1);
/**
 * This file is part of bearing-web.
 *
 * @link     https://www.bearing.cn/
 * @contact  tech@bearing.cn
 * @license  https://gitee.com/cppo/bearing_web/-/blob/master/README.md
 */

namespace common;

class Common {
    public static function spaceToLines(string $string): string
    {
        return strtolower(preg_replace('/\s+/', '-', $string));
    }
}
